package com.ossjk.qlh.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ossjk.core.base.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author chair
 * @since 2020-02-06
 */
@ApiModel(value = "部门")
public class Department extends BaseEntity<Department> {

	private static final long serialVersionUID = 1L;

	/**
	 * 姓名
	 */
    @ApiModelProperty(value = "姓名",required=true)
	@TableField("name")
	private String name;
	/**
	 * 父id
	 */
    @ApiModelProperty(value = "父id",required=true)
	@TableField("pid")
	private String pid;
	/**
	 * 排序
	 */
    @ApiModelProperty(value = "排序",required=true)
	@TableField("sort")
	private Integer sort;
	/**
	 * 等级
	 */
    @ApiModelProperty(value = "等级",required=true)
	@TableField("level")
	private Integer level;
	/**
	 * 备注
	 */
    @ApiModelProperty(value = "备注" )
	@TableField("remarks")
	private String remarks;
	 

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	 
	@Override
	protected Serializable pkVal() {
		return null;
	}

	@Override
	public String toString() {
		return "Department [name=" + name + ", pid=" + pid + ", sort=" + sort + ", level=" + level + ", remarks="
				+ remarks + "]";
	}

	 
}
